package birdsong.comm;

import java.io.Serializable;

public class ServerSideMessageImp implements Serializable, ServerSideMessage{

	private String nickname;
	private Type type;
	private String payload;

	public ServerSideMessageImp(String nickname, Type type, String payload) {
		this.nickname = nickname;
		this.type = type;
		this.payload = payload;
	}

	public Type getType() {
		return type;
	}

	public String getPayload() {
		return payload;
	}

	public String getClientNickname() {
		return nickname;
	}
}
